﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Helper.cs" company="">
//   
// </copyright>
// <summary>
//   Defines the Helper type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DbDiff.WinClient.Helper
{
    public static class ThreadHelper
    {
        /// <summary>
        /// </summary>
        /// <param name="compare">
        /// The compare.
        /// </param>
        /// <returns>
        /// </returns>
        public static EventStatusInfoCollection GetEventInfos(bool compare)
        {

            var eventStatusInfos = new EventStatusInfoCollection();
            int i = 0;
            eventStatusInfos.Add(new EventStatusInfo("server", "Server info", i++));
            eventStatusInfos.Add(new EventStatusInfo("database", "Database info", i++));
            eventStatusInfos.Add(new EventStatusInfo("udts", "UDTS", i++));
            eventStatusInfos.Add(new EventStatusInfo("defaults", "Defaults", i++));
            eventStatusInfos.Add(new EventStatusInfo("default constraint", "Default constraints", i++));
            eventStatusInfos.Add(new EventStatusInfo("rules", "Rules", i++));
            eventStatusInfos.Add(new EventStatusInfo("tables", "Tables", i++));
            eventStatusInfos.Add(new EventStatusInfo("fields", "Fields", i++));
            eventStatusInfos.Add(new EventStatusInfo("indexes", "Indexes", i++));

            if (compare)
            {
                eventStatusInfos.Add(new EventStatusInfo("foreign keys", "Foreign keys", i++));
            }

            eventStatusInfos.Add(new EventStatusInfo("check constraints", "Check constraints", i++));
            eventStatusInfos.Add(new EventStatusInfo("procedures", "Procedures", i++));
            eventStatusInfos.Add(new EventStatusInfo("triggers", "Triggers", i++));
            eventStatusInfos.Add(new EventStatusInfo("views", "Views", i++));
            eventStatusInfos.Add(new EventStatusInfo("functions", "Functions", i++));
            return eventStatusInfos;
        }
    }
}